<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <f:loadBundle basename="UtilidadesSetup" var="utilidadesSetup"/>
        <div align="center">
            <ui:themeLinks binding="#{PortletTipoDestinoPage.themeLinks1}" id="themeLinks1"/>
            <ui:form binding="#{PortletTipoDestinoPage.form1}" id="form1">
                <h:panelGrid binding="#{PortletTipoDestinoPage.gridPanelContainer}" columns="1" id="gridPanelContainer" style="text-align: center" width="100%">
                    <h:panelGrid binding="#{PortletTipoDestinoPage.gridPanelTop}" columns="2" headerClass="headerClassDataTable" id="gridPanelTop" rowClasses="rowClassWhite, rowClassBlue">
                        <f:facet name="header">
                            <h:outputText value="OPCIONES DE BUSQUEDA"/>
                        </f:facet>
                        <h:panelGroup style="display: block; text-align: left">
                            <h:outputText binding="#{PortletTipoDestinoPage.outputText1}" id="outputText1" styleClass="outputText" value="CLIENTE"/>
                            <h:outputText styleClass="portlet-msg-alert" value=" * "/>
                        </h:panelGroup>
                        <ui:dropDown binding="#{PortletTipoDestinoPage.dropDownCliente}" id="dropDownCliente"
                            items="#{SessionAdminTipoDestinoBean.optionClientes}" styleClass="select" submitForm="true" valueChangeListener="#{PortletTipoDestinoPage.dropDownCliente_processValueChange}"/>
                        <h:outputText binding="#{PortletTipoDestinoPage.outputText2}" id="outputText2" styleClass="outputText" value="TIPO DESTINO"/>
                        <ui:dropDown binding="#{PortletTipoDestinoPage.dropDownTipodestinoCliente}" id="dropDownTipodestinoCliente"
                            items="#{SessionAdminTipoDestinoBean.optionTipoDestinoCliente}" styleClass="select"/>
                        <h:outputText binding="#{PortletTipoDestinoPage.outputText3}" id="outputText3" styleClass="outputText" value="DEPARTAMENTO"/>
                        <ui:dropDown binding="#{PortletTipoDestinoPage.dropDownDepartamento}" id="dropDownDepartamento"
                            items="#{SessionAdminTipoDestinoBean.optionDepartamentos}" styleClass="select" submitForm="true" valueChangeListener="#{PortletTipoDestinoPage.dropDownDepartamento_processValueChange}"/>
                        <h:outputText binding="#{PortletTipoDestinoPage.outputText4}" id="outputText4" styleClass="outputText" value="MUNICIPIO"/>
                        <ui:dropDown binding="#{PortletTipoDestinoPage.dropDownMunicipio}" id="dropDownMunicipio"
                            items="#{SessionAdminTipoDestinoBean.optionMunicipio}" styleClass="select"/>
                    </h:panelGrid>
                    <h:panelGroup style="display: block; text-align: center">
                        <h:commandButton action="#{PortletTipoDestinoPage.buttonConsultar_action}" binding="#{PortletTipoDestinoPage.buttonConsultar}"
                            id="buttonConsultar" styleClass="button" value="CONSULTAR"/>
                    </h:panelGroup>
                    <h:panelGroup style="display: block; text-align: center">
                        <h:panelGrid binding="#{PortletTipoDestinoPage.gridPanelBottom}" id="gridPanelBottom" style="text-align: center" width="100%">
                            <h:panelGroup style="display: block; text-align: center">
                                <ui:alert binding="#{PortletTipoDestinoPage.alertMessage}" id="alertMessage" rendered="#{SessionAdminTipoDestinoBean.renderAlert}"/>
                            </h:panelGroup>
                            <h:dataTable binding="#{PortletTipoDestinoPage.dataTableMatrizTDC}" headerClass="headerClassDataTable" id="dataTableMatrizTDC"
                                rendered="#{SessionAdminTipoDestinoBean.renderTable}" rowClasses="rowClassWhite, rowClassBlue" rows="20"
                                value="#{SessionAdminTipoDestinoBean.matrizTDC}" var="currentRow">
                                <h:column binding="#{PortletTipoDestinoPage.columnDepartamento}" id="columnDepartamento">
                                    <h:outputText binding="#{PortletTipoDestinoPage.outputText5}" id="outputText5" styleClass="outputTextDataTable" value="#{currentRow.nombreDepartamento}"/>
                                    <f:facet name="header">
                                        <h:outputText binding="#{PortletTipoDestinoPage.outputText6}" id="outputText6" value="DEPARTAMENTO"/>
                                    </f:facet>
                                </h:column>
                                <h:column binding="#{PortletTipoDestinoPage.columnMunicipio}" id="columnMunicipio">
                                    <h:outputText binding="#{PortletTipoDestinoPage.outputText7}" id="outputText7" styleClass="outputTextDataTable" value="#{currentRow.nombreMunicipio}"/>
                                    <f:facet name="header">
                                        <h:outputText binding="#{PortletTipoDestinoPage.outputText8}" id="outputText8" value="MUNICIPIO"/>
                                    </f:facet>
                                </h:column>
                                <h:column binding="#{PortletTipoDestinoPage.columnCenrtoP}" id="columnCenrtoP">
                                    <f:facet name="header">
                                        <h:outputText binding="#{PortletTipoDestinoPage.outputText10}" id="outputText10" value="CENTRO POBLADO"/>
                                    </f:facet>
                                    <h:panelGrid columns="2" style="text-align: center" width="100%">
                                        <h:panelGroup style="display: block; text-align: left">
                                            <h:outputText binding="#{PortletTipoDestinoPage.outputText9}" id="outputText9" styleClass="outputTextDataTable" value="#{currentRow.nombreCentroPoblado}"/>
                                        </h:panelGroup>
                                        <h:panelGroup style="display: block; text-align: right">
                                            <ui:checkbox binding="#{PortletTipoDestinoPage.checkboxTDC}" id="checkboxTDC" name="checkSelectionGroup"
                                                rendered="#{SessionAdminTipoDestinoBean.renderGerencia}" selectedValue="#{currentRow.codigoTipoDestinoCliente}-#{currentRow.codigoCliente}-#{currentRow.codigoDepartamento}-#{currentRow.codigoMunicipio}-#{currentRow.codigoCentroPoblado}"/>
                                        </h:panelGroup>
                                    </h:panelGrid>
                                </h:column>
                                <h:column binding="#{PortletTipoDestinoPage.columnTipoDestino}" id="columnTipoDestino">
                                    <f:facet name="header">
                                        <h:outputText binding="#{PortletTipoDestinoPage.outputText11}" id="outputText11" value="TIPO DESTINO"/>
                                    </f:facet>
                                    <h:outputText binding="#{PortletTipoDestinoPage.outputText12}" id="outputText12" styleClass="outputTextDataTable" value="#{currentRow.nombreTipoDestinoCliente}"/>
                                </h:column>
                                <f:facet name="footer"/>
                                <f:facet name="footer">
                                    <h:panelGroup binding="#{PortletTipoDestinoPage.groupPanel1}" id="groupPanel1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                        <h:commandButton action="#{PortletTipoDestinoPage.dataTableMatrizTDC_firstPageAction}"
                                            binding="#{PortletTipoDestinoPage.dataTableMatrizTDCFooterFirstButton}" id="dataTableMatrizTDCFooterFirstButton"
                                            image="#{utilidadesSetup.firstPageImg}" immediate="true"/>
                                        <h:commandButton action="#{PortletTipoDestinoPage.dataTableMatrizTDC_previousPageAction}"
                                            binding="#{PortletTipoDestinoPage.dataTableMatrizTDCFooterPreviousButton}"
                                            id="dataTableMatrizTDCFooterPreviousButton" image="#{utilidadesSetup.previousPageImg}" immediate="true"/>
                                        <h:commandButton action="#{PortletTipoDestinoPage.dataTableMatrizTDC_nextPageAction}"
                                            binding="#{PortletTipoDestinoPage.dataTableMatrizTDCFooterNextButton}" id="dataTableMatrizTDCFooterNextButton"
                                            image="#{utilidadesSetup.nextPageImg}" immediate="true"/>
                                        <h:commandButton action="#{PortletTipoDestinoPage.dataTableMatrizTDC_lastPageAction}"
                                            binding="#{PortletTipoDestinoPage.dataTableMatrizTDCFooterLastButton}" id="dataTableMatrizTDCFooterLastButton"
                                            image="#{utilidadesSetup.lastPageImg}" immediate="true"/>
                                    </h:panelGroup>
                                </f:facet>
                            </h:dataTable>
                        </h:panelGrid>
                    </h:panelGroup>
                    <h:panelGroup rendered="#{SessionAdminTipoDestinoBean.renderTable}" style="display: block; text-align: center">
                        <h:panelGrid columns="3" rowClasses="rowClassWhite, rowClassBlue">
                            <h:outputText binding="#{PortletTipoDestinoPage.outputText13}" id="outputText13"
                                rendered="#{SessionAdminTipoDestinoBean.renderGerencia}" styleClass="outputText" value="TIPO DESTINO"/>
                            <ui:dropDown binding="#{PortletTipoDestinoPage.dropDownTipoDestinoNuevo}" id="dropDownTipoDestinoNuevo"
                                items="#{SessionAdminTipoDestinoBean.optionTipoDestinoCliente}" rendered="#{SessionAdminTipoDestinoBean.renderGerencia}" styleClass="select"/>
                            <h:commandButton action="#{PortletTipoDestinoPage.buttonAsignar_action}" binding="#{PortletTipoDestinoPage.buttonAsignar}"
                                id="buttonAsignar" rendered="#{SessionAdminTipoDestinoBean.renderGerencia}" styleClass="button" value="ASIGNAR"/>
                        </h:panelGrid>
                    </h:panelGroup>
                </h:panelGrid>
            </ui:form>
        </div>
    </f:view>
</jsp:root>
